#!/usr/bin/gnuplot

#set terminal post eps 24
set terminal post eps color 24 

# Job View: Graph 1
# task running time graph (including map task and reduce task)
# x axis: time
# y axis: Task ID
set output "tasktime.eps"
set xlabel "Time (1000s)"
set ylabel "Task ID"
set key inside bottom right

plot "maptime.dat" using ($2-$7)/1000:1:($5-$2)/1000:(0) with vectors lt 1 linecolor 1 nohead title "map", \
	"reducetime.dat" using ($2-$9)/1000:1:($7-$2)/1000:(0) with vectors lt 1 linecolor 2 nohead title "reduce"



